import request from '@/utils/request'
// const service1 = 'http://192.168.10.165:6180'
const service1 = window.lwConfig.services.auth
const service = window.lwConfig.services.wecom + '/lxqr'

// ************************* 数据评估平台 ***************************************
// 下载文件
export function downloadFile(params) {
  return request({
    url: service1 + '/sjhg/common/download',
    method: 'get',
    params,
  })
}

export function downloadFile2(params) {
  return request({
    url: service1 + '/sjhg/minio/download',
    method: 'get',
    params,
    responseType: 'blob'
  })
}

//  批量上传文件
export function uploadMultiFile(data) {
  return request({
    url: service1 + '/sjhg/multi/upload',
    method: 'post',
    data: data,
  })
}

//  批量上传文件
export function uploadFile(data) {
  return request({
    url: service1 + '/sjhg/common/upload',
    method: 'post',
    data: data,
  })
}
